package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 住院充值记录对象 zyrecharge
 * 
 * @author ruoyi
 * @date 2025-06-30
 */
public class Zyrecharge extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 操作时间 */

    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "操作时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date operateTime;

    /** 订单编号 */
    @Excel(name = "订单编号")
    private String orderNo;

    /** 患者姓名 */
    @Excel(name = "患者姓名")
    private String patientName;

    /** 就诊卡号 */
    private Long id;

    /** 住院号 */
    @Excel(name = "住院号")
    private Long zyid;

    /** 来源 */
    @Excel(name = "来源")
    private String source;

    /** 业务类型 */
    @Excel(name = "业务类型")
    private String bizType;

    /** 支付方式 */
    @Excel(name = "支付方式")
    private String payType;

    /** 支付金额（元） */
    @Excel(name = "支付金额")
    private BigDecimal amount;

    /** 支付状态 */
    @Excel(name = "支付状态")
    private String payStatus;

    /** 卡内余额（元） */
    @Excel(name = "卡内余额")
    private BigDecimal balance;
    @Excel(name = "是否完成充值")
    private int ifok;
    /** 科室ID */
    private Integer departmentId;
    public void setDepartmentId(Integer departmentId)
    {
        this.departmentId = departmentId;
    }

    public Integer getDepartmentId()
    {
        return departmentId;
    }
    public void setOperateTime(Date operateTime) 
    {
        this.operateTime = operateTime;
    }

    public Date getOperateTime() 
    {
        return operateTime;
    }
    public void setOrderNo(String orderNo) 
    {
        this.orderNo = orderNo;
    }

    public String getOrderNo() 
    {
        return orderNo;
    }
    public void setPatientName(String patientName) 
    {
        this.patientName = patientName;
    }

    public String getPatientName() 
    {
        return patientName;
    }
    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setZyid(Long zyid) 
    {
        this.zyid = zyid;
    }

    public Long getZyid() 
    {
        return zyid;
    }
    public void setSource(String source) 
    {
        this.source = source;
    }

    public String getSource() 
    {
        return source;
    }
    public void setBizType(String bizType) 
    {
        this.bizType = bizType;
    }

    public String getBizType() 
    {
        return bizType;
    }
    public void setPayType(String payType) 
    {
        this.payType = payType;
    }

    public String getPayType() 
    {
        return payType;
    }
    public void setAmount(BigDecimal amount) 
    {
        this.amount = amount;
    }

    public BigDecimal getAmount() 
    {
        return amount;
    }
    public void setPayStatus(String payStatus) 
    {
        this.payStatus = payStatus;
    }

    public String getPayStatus() 
    {
        return payStatus;
    }
    public void setBalance(BigDecimal balance) 
    {
        this.balance = balance;
    }

    public BigDecimal getBalance() 
    {
        return balance;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("operateTime", getOperateTime())
            .append("orderNo", getOrderNo())
            .append("patientName", getPatientName())
            .append("id", getId())
            .append("zyid", getZyid())
            .append("source", getSource())
            .append("bizType", getBizType())
            .append("payType", getPayType())
            .append("amount", getAmount())
            .append("payStatus", getPayStatus())
            .append("balance", getBalance())
            .append("departmentId", getDepartmentId())
            .append("ifok", getIfok())
            .toString();
    }

    public int getIfok() {
        return ifok;
    }

    public void setIfok(int ifok) {
        this.ifok = ifok;
    }
}
